package com.aaa.day04.api;

/**
 * @author ：Teacher陈（86521760@qq.com）
 * @date ：Created in 2024/11/14 17:13
 * @description：
 * @modified By：
 * @version:
 */
public class Person {
    int id;
    String name;

    public Person() {
    }

    public Person(int id, String name) {
        this.id = id;
        this.name = name;
    }

    @Override
    protected void finalize() throws Throwable {
        System.out.println("对象被回收了");
    }
}
